//
//  MSUploadCardTableVC.m
//  SocietySale
//
//  Created by Mike on 16/11/3.
//  Copyright © 2016年 Mike. All rights reserved.
//

#import "MSUploadCardTableVC.h"
#import "MSUploadCardCell.h"

@interface MSUploadCardTableVC ()

@end

@implementation MSUploadCardTableVC

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    NSString *cellId = @"cellId";
    MSUploadCardCell *cell = [tableView dequeueReusableCellWithIdentifier:cellId];
    if (!cell) {
        cell = [[MSUploadCardCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellId];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    cell.delegate = (id)self.delegate;
    cell.cellIndex = indexPath.row;
    cell.uploadModel = self.dataArray[indexPath.row];
    return cell;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 175;
}

@end
